package cn.wolfcode.cloud.productserver.controller;


import cn.wolfcode.cloud.productapi.service.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/*@RestController
@RequestMapping("/product")*/
public class ProductController {

    @Autowired
    private IProductService productService;

    @RequestMapping("/list")
    public Object list(){
        return  productService.list();
    }


    @RequestMapping("/find")
    public Object find(Long userId){
        return  productService.get(userId);
    }

}
